package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName FrequencyTypeEnum.java
 * @Description TODO
 * @createTime 2023年12月28日
 */
@Getter
@RequiredArgsConstructor
public enum FrequencyTypeEnum {

    // 1每日、2每周、3每月
    PUSH_0(1, "每日"),
    PUSH_1(2, "每周"),
    PUSH_2(3, "每月"),
  ;


    private final int code;
    private final String name;



    public static FrequencyTypeEnum getPushTypes(int code) {
        for (FrequencyTypeEnum dtuPushTypeEnum : FrequencyTypeEnum.values()) {
            if (dtuPushTypeEnum.getCode()==(code)) return dtuPushTypeEnum;
        }
        return null;
    }

}
